package cn.village.controller;

import cn.village.entity.CorporationContract;
import cn.village.service.CorporationContractService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (CorporationContract)表控制层
 *
 * @author makejava
 * @since 2021-02-10 15:33:53
 */
@RestController
@RequestMapping("corporationContract")
public class CorporationContractController {
    /**
     * 服务对象
     */
    @Resource
    private CorporationContractService corporationContractService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CorporationContract selectOne(Integer id) {
        return this.corporationContractService.queryById(id);
    }

}